#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
# - http://heavyz.blogspot.com/
# - http://buggarden.blogspot.com/
#
# Created on 2008-12-08.
# $Id: resources.py 26 2009-08-04 22:06:00Z guolin.mobi $
#

class BannerImage(object):
    def __init__(self, id, url, title, desc):
        self.id    = id
        self.url   = url
        self.title = title
        self.desc  = desc

HOME_URL = "/"


BANNER_IMAGES = ( BannerImage( id="Forum_Horizon_Chine_2010_1",
                               url=HOME_URL,
                               title="Forum Horizon Chine,",
                               desc="Taken by AFCP on 2010-05-20" ),
                  BannerImage( id="Forum_Horizon_Chine_2010_2",
                               url=HOME_URL,
                               title="Forum Horizon Chine,",
                               desc="Taken by AFCP on 2010-05-20" ),
                  BannerImage( id="Forum_Horizon_Chine_2010_3",
                               url=HOME_URL,
                               title="Forum Horizon Chine,",
                               desc="Taken by AFCP on 2010-05-20" ), 
                  BannerImage( id="Forum_Horizon_Chine_2010_4",
                               url=HOME_URL,
                               title="Forum Horizon Chine,",
                               desc="Taken by AFCP on 2010-05-20" ),
                  BannerImage( id="Forum_Horizon_Chine_2010_5",
                               url=HOME_URL,
                               title="Forum Horizon Chine,",
                               desc="Taken by AFCP on 2010-05-20" ), 
                  BannerImage( id="Forum_Horizon_Chine_2010_6",
                               url=HOME_URL,
                               title="Forum Horizon Chine,",
                               desc="Taken by AFCP on 2010-05-20" ),
                  BannerImage( id="Forum_Horizon_Chine_2010_7",
                               url=HOME_URL,
                               title="Forum Horizon Chine,",
                               desc="Taken by AFCP on 2010-05-20" ), 
                  BannerImage( id="Forum_Horizon_Chine_2010_8",
                               url=HOME_URL,
                               title="Forum Horizon Chine,",
                               desc="Taken by AFCP on 2010-05-20" ),
                  BannerImage( id="Forum_Horizon_Chine_2010_9",
                               url=HOME_URL,
                               title="Forum Horizon Chine,",
                               desc="Taken by AFCP on 2010-05-20" ), 
                  BannerImage( id="Forum_Horizon_Chine_2010_10",
                               url=HOME_URL,
                               title="Forum Horizon Chine,",
                               desc="Taken by AFCP on 2010-05-20" ),
                 
                  BannerImage( id="Forum_Horizon_Chine_2011_11",
                               url=HOME_URL,
                               title="Forum Horizon Chine,",
                               desc="Taken by AFCP on 2011-05-12" ),
                  BannerImage( id="Forum_Horizon_Chine_2011_12",
                               url=HOME_URL,
                               title="Forum Horizon Chine,",
                               desc="Taken by AFCP on 2011-05-12" ),
                  BannerImage( id="Forum_Horizon_Chine_2011_13",
                               url=HOME_URL,
                               title="Forum Horizon Chine,",
                               desc="Taken by AFCP on 2011-05-12" ),
                  BannerImage( id="Forum_Horizon_Chine_2011_14",
                               url=HOME_URL,
                               title="Forum Horizon Chine,",
                               desc="Taken by AFCP on 2011-05-12" ),
                  BannerImage( id="Forum_Horizon_Chine_2011_15",
                               url=HOME_URL,
                               title="Forum Horizon Chine,",
                               desc="Taken by AFCP on 2011-05-12" ),
                  BannerImage( id="Forum_Horizon_Chine_2011_16",
                               url=HOME_URL,
                               title="Forum Horizon Chine,",
                               desc="Taken by AFCP on 2011-05-12" ),
                  # Add a banner image here:
                  # BannerImage( id="id (static image file base name)",
                  #              url="external url",
                  #              title="image title",
                  #              desc="description" ),
                ) # BANNER_IMAGES

# Liste des adresses e-mail des contacts des entreprises à qui les candidatures sont envoyées.
# L'id correspond à l'id indiquée dans les formulaires de postulation
# Exemple :
#company_emails = {
#                  '1': "architruc <archi.truc@yahoo.fr>, aol emd <antoine.ory-lamballe@mines-paristech.fr>"
#                  }

sender = u'Forum Horizon Chine <admin@forumhorizonchine.com>'

defaultAttachmentsNumber = 2

# Number of attachments required for applications.
# The identifier used is the same as company_emails (following)
#attachments = {
#    'huawei': 4,
#    'huawei2': 4,
#    'test': 4,
#}


class CompanyDetails(object):
    """
    Properties: company email (email), minimal number of attachment (minattach), maximal number of attachment (maxattach).
    If no minattach is defined, it is set to resources.defaultAttachmentsNumber (2).
    If no maxattach is defined, it is set to minattach value.
    """
    def __init__(self, email, minattach=defaultAttachmentsNumber, maxattach=None):
        self.email    = email
        self.minattach   = minattach
        if maxattach is None:
            self.maxattach = minattach
        else:
            self.maxattach = maxattach

company_emails = {
      'test': CompanyDetails('Antoine ORY-LAMBALLE <antoine.orylamballe@yahoo.fr>', 2, 4), # formulaire de test
#       'huawei': CompanyDetails('recuit@huawei.com', 2, 4),                               # Huawei - recrutement
#       'huawei2': CompanyDetails("ricky@huawei.com, francehr@huawei.com", 2, 4),          # Huawei - Ingénieur Support Expert Datacom
      'bmwbj': CompanyDetails('careerbj@bmw-brilliance.cn'),                            # BMW - recrutement bj
      'bmwsy': CompanyDetails('careersy@bmw-brilliance.cn'),                            # BMW - recrutement sy
#       'tbsmarketing': CompanyDetails('Sallytbsdtv@gmail.com, kerong.cao@gmail.com'),     # TBS Europe - Chargé(e) de mission - Marketing
      'lyxorquant': CompanyDetails('jean-charles.richard@lyxor.com'),                   # Lyxor Asset Management - Quant R&D
#      'bmwbj': CompanyDetails('antoine.orylamballe@yahoo.fr'),                            # BMW - recrutement bj
#      'bmwsy': CompanyDetails('antoine.orylamballe@yahoo.fr'),                            # BMW - recrutement sy
#       'jpm': CompanyDetails('fei.shi@jpmchase.com'),                                  # Lyxor Asset Management - Quant R&D
      'michelin': CompanyDetails('assistant.recruiting@cn.michelin.com'),               # Michelin
      'boc': CompanyDetails('hrceximbank@gmail.com'),                                   # Bank of China
#       'bureauveritas': CompanyDetails('thomas.zhu2008@gmail.com'),                    # Bureau Veritas China
      'haygroup': CompanyDetails('xiajiaojiao428@gmail.com'),                           # Hay Group
      'devialet': CompanyDetails('julien.bergere@devialet.com'),                        # Devialet
      'diam': CompanyDetails('raphaele.briand@diaminter.com, dan.xu@diaminter.com'),    # Diam
  }
#application_cc = u'AFCP <AFCParisTech@gmail.com>, Antoine ORY-LAMBALLE <antoine.ory-lamballe@mines-paristech.fr>, ZHENG Ban <ban.zheng.x2005@gmail.com>'
#application_cc = u'ZHU Qi <realzhq@gmail.com>, LI Zheng <zheng.li@polytechnique.edu>, ZHANG Nan <nan.zhann@gmail.com>, DENG Ken <dengken524@live.cn>, Antoine ORY-LAMBALLE <antoine.orylamballe@yahoo.fr>, ZHU Tong <zhutong0114@gmail.com>'
application_cc = u'ZHU Qi <realzhq@gmail.com>, LI Zheng <zheng.li@polytechnique.edu>, DENG Ken <dengken524@live.cn>, Antoine ORY-LAMBALLE <antoine.orylamballe@yahoo.fr>, ZHU Tong <zhutong0114@gmail.com>'

#contactus_emails = u'AFCP <AFCParisTech@gmail.com>, ban.zheng.x2005@gmail.com, luoyudenis@gmail.com'
#contactus_emails = u'ZHU Qi <realzhq@gmail.com>, LI Zheng <zheng.li@polytechnique.edu>, ZHANG Nan <nan.zhann@gmail.com>, DENG Ken <dengken524@live.cn>, Antoine ORY-LAMBALLE <antoine.orylamballe@yahoo.fr>, ZHU Tong <zhutong0114@gmail.com>'
contactus_emails = u'ZHU Qi <realzhq@gmail.com>, LI Zheng <zheng.li@polytechnique.edu>, DENG Ken <dengken524@live.cn>, Antoine ORY-LAMBALLE <antoine.orylamballe@yahoo.fr>, ZHU Tong <zhutong0114@gmail.com>'

workpermit_comments_to = u'AFCP <afcparistech@gmail.com'
#workpermit_comments_to = u'Antoine ORY-LAMBALLE <antoine.orylamballe@yahoo.fr'
workpermit_comments_cc = u'Antoine ORY-LAMBALLE <antoine.orylamballe@yahoo.fr'
